<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="Nastavení hesla"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
               
            </h:panelGroup>
            <h:form>
               
                <h:panelGrid columns="1">
                    <h1>Změna hesla</h1>
                    <h:outputLabel styleClass="infoLabel" value="#{changeAccountController.info}"/>
                    <h:outputLabel value="Vaše heslo" for="password" />
                    <h:panelGroup>
                        <h:inputSecret id="password" value="#{changeAccountController.password}" redisplay="true"/>
                        <h:message styleClass="messageStyle" for="password"/>
                    </h:panelGroup>

                    <h:outputLabel value="Nové heslo" for="newPassword" />
                    <h:panelGroup>
                        <h:inputSecret id="newPassword" value="#{changeAccountController.newPassword}" redisplay="true"/>
                        <h:message styleClass="messageStyle" for="newPassword"/>
                    </h:panelGroup>

                    <h:outputLabel value="Nové heslo znovu" for="checkPassword" />
                    <h:panelGroup>
                        <h:inputSecret id="checkPassword" value="#{changeAccountController.checkPassword}" redisplay="true"/>
                        <h:message styleClass="messageStyle" for="checkPassword"/>
                    </h:panelGroup>
                    <h:commandButton styleClass="button" action="#{changeAccountController.update}" value="Uložit"/>
                </h:panelGrid>
               

            </h:form>
        </ui:define>
    </ui:composition>

</html>
